#include "Filter.h"
#include "CommandToken.h"
#include "Constants.h"
#include <header.h>
#include "ResponseHeader.h"
#include "Global.h"
#include "View.h"




/* 处理对应请求，既发送文件还是接收文件 */
int resolve(int net_fd, unsigned short command, ResponseHeader* header){

    switch (command){
        case LOGIN:
            viewLogin(header);
            break;
        case REGISTER:
            viewRegister(header);
            break;
        case CD:
            break;
        case LS:
            break;
        case PWD:
            break;
        case PUT_FILE:
            break;
        case GET_FILE:
            break;
        case RM:
            printf("%s\n", header->data);
            break;
        case MKDIR:
            break;

    }
    return 0;
}

